package gjbsh.bangong.ds.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import gjbsh.bangong.ds.service.组织活动到会时段Service;
import gjbsh.support.JsonResult;


@RestController
@RequestMapping("zuzhihuodongdaohuishiduan")
public class 组织活动到会时段Controller {
	
	private Logger logger = LoggerFactory.getLogger(getClass());
	
	@Autowired
	组织活动到会时段Service dd组织活动到会时段Service;
	
	
	// 查询有效的活动类型
	@RequestMapping("find_valid")
	public JsonResult<?> findByValid(){
		try {		
			return JsonResult.getSuccessResult(dd组织活动到会时段Service.findValid());
		} catch (Exception e) {
			
			logger.error("组织活动到会时段Controller->find_valid: "+e.getMessage());
			return JsonResult.getErrorResult("查询有效的活动类型失败");
		}
	}
	
	
	
}
